import React, {Component} from 'react'
import ListComponent from './listComponent'
import InputComponent from './inputComponent'
import TextareaComponent from './textareaComponent'
import SelectComponent from './selectComponent'

class FormComponent extends Component {

  constructor() {
    super();
    this.state = {
      submitValue: '初始值'
    }

    this.handleSubmit = this
      .handleSubmit
      .bind(this);
  }

  handleSubmit() {
    console.log('正在提交数据')
  }

  render() {
    return (
      <form>
        {< ListComponent > </ListComponent>}
        <InputComponent></InputComponent>
        <TextareaComponent></TextareaComponent>
        {< SelectComponent > </SelectComponent>}
      </form>
    )
  }

}

export default FormComponent